/*
*   @Author: ffy
*   @Contributor: 1296
*   @Date: 2025-03-18
*   @Description: 关于我们
*/

<template>
  <div class="about-container">
    <div class="content-box">
      <h1 class="title">{{ $t('aboutUs.developTeam') }}</h1>

      <div class="team-members">
        <div class="member-card" v-for="member in developers" :key="member.name">
          <div class="member-info">
            <h2 class="name">{{ member.name }}</h2>
            <p class="role">{{ member.role }}</p>
            <p class="bio">{{ member.bio }}</p>

          </div>
        </div>
      </div>
    </div>

<!--    <div class="footer-note">-->
<!--      教师学生双端签到程序-->
<!--    </div>-->
  </div>
</template>

<style scoped>
.title {
  text-align: center;
}

.team-members {
  display: grid;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.member-card {
  display: flex;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.avatar-wrapper {
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.member-info {
  flex: 1;
}

.name {
  color: #2c3e50;
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
}

.role {
  color: #3b82f6;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.bio {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-note {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #718096;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .member-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar-wrapper {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .links {
    justify-content: center;
  }
}
</style>

<script setup>
import { useI18n } from 'vue-i18n'
const { t } = useI18n()

const developers = [
  {
    name: t('aboutUs.developers.liuHaodong.name'),
    role: t('aboutUs.developers.liuHaodong.role'),
    bio: t('aboutUs.developers.liuHaodong.bio')
  },
  {
    name: t('aboutUs.developers.huHao.name'),
    role: t('aboutUs.developers.huHao.role'),
    bio: t('aboutUs.developers.huHao.bio')
  },
  {
    name: t('aboutUs.developers.zhaoXinyuan.name'),
    role: t('aboutUs.developers.zhaoXinyuan.role'),
    bio: t('aboutUs.developers.zhaoXinyuan.bio')
  },
  {
    name: t('aboutUs.developers.liJiaqi.name'),
    role: t('aboutUs.developers.liJiaqi.role'),
    bio: t('aboutUs.developers.liJiaqi.bio')
  },
  {
    name: t('aboutUs.developers.fuFeiyang.name'),
    role: t('aboutUs.developers.fuFeiyang.role'),
    bio: t('aboutUs.developers.fuFeiyang.bio')
  }
]
</script>